package com.bw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bw.bean.Clazz;
import com.bw.bean.addBean.Classes;
import com.bw.bean.addBean.Student;
import com.bw.bean.addBean.Teachers;
import com.bw.bean.addBean.TestReturn;
import com.bw.util.PageUtil;


public interface AddDAO {

	List<TestReturn> getClasses() throws Exception;

	List<TestReturn> getTeacher() throws Exception;

	int doAddStudent(Student student) throws Exception;

	int doAddClasses(Classes classes) throws Exception;

	int doAddTeachers(Teachers teachers) throws Exception;

	List<Teachers> getListTeacher(PageUtil page);

	List<Classes> getListClasses(PageUtil pageUtil);

	int getCountByTeachers();

	int getCountByClasses();

	int getCountByStudent();

	/*List<Student> getListStudent(PageUtil pageUtil);*/

	/*List<Student> getListStudent(PageUtil pageUtil, Integer tid);*/

	List<Student> getListStudent(@Param("pageindex")int pageindex, @Param("pagesize")int pagesize, @Param("tid")Integer tid);

	List<Classes> getListClasses(@Param("pageindex")int pageindex, @Param("pagesize")int pagesize, @Param("tid")Integer tid);

	


}
